package com.baosight.risk.service.rifi.entity;

import com.baosight.risk.base.entity.BaseEntity;
import com.baosight.risk.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;
import javax.persistence.*;

import lombok.Data;

/**
 * Table: T_RIFI_EVALUATE
 * 重点风险管理能力测评
 */
@Data
@ApiModel
@Table(name = "T_RIFI_EVALUATE")
public class RifiEvaluate extends BaseEntity {

    /**
     * 父节点ID
     * <p>
     * Table:     T_RIFI_EVALUATE
     * Column:    PARENT_ID
     * Nullable:  true
     */
    @ApiModelProperty("父节点ID")
    @Column(name = "PARENT_ID")
    private String parentId;

    /**
     * 风险点ID
     * <p>
     * Table:     T_RIFI_EVALUATE
     * Column:    RISK_ID
     * Nullable:  false
     */
    @ApiModelProperty("风险点ID")
    @Column(name = "RISK_ID")
    private String riskId;

    /**
     * 管理领域
     * <p>
     * Table:     T_RIFI_EVALUATE
     * Column:    FIELD_CODE
     * Nullable:  true
     */
    @ApiModelProperty("管理领域")
    @Column(name = "FIELD_CODE")
    private String fieldCode;

    /**
     * 管理领域说明
     * <p>
     * Table:     T_RIFI_EVALUATE
     * Column:    FIELD_NAME
     * Nullable:  true
     */
    @Excel(name = "管理领域")
    @ApiModelProperty("管理领域说明")
    @Column(name = "FIELD_NAME")
    private String fieldName;

    /**
     * 管理目标
     * <p>
     * Table:     T_RIFI_EVALUATE
     * Column:    MANAGE_TARGET
     * Nullable:  true
     */
    @Excel(name = "管理目标")
    @ApiModelProperty("管理目标")
    @Column(name = "MANAGE_TARGET")
    private String manageTarget;

    /**
     * 测评标准
     * <p>
     * Table:     T_RIFI_EVALUATE
     * Column:    ASSESS_STANDARD
     * Nullable:  true
     */
    @Excel(name = "测评标准")
    @ApiModelProperty("测评标准")
    @Column(name = "ASSESS_STANDARD")
    private String assessStandard;

    /**
     * 权重
     * <p>
     * Table:     T_RIFI_EVALUATE
     * Column:    WEIGHT
     * Nullable:  true
     */
    @Excel(name = "权重")
    @ApiModelProperty("权重")
    @Column(name = "WEIGHT")
    private BigDecimal weight;

    /**
     * 评测结果
     * <p>
     * Table:     T_RIFI_EVALUATE
     * Column:    ASSESS_CODE
     * Nullable:  true
     */
    @Excel(name = "评测结果")
    @ApiModelProperty("评测结果")
    @Column(name = "ASSESS_CODE")
    private String assessCode;

    /**
     * 评测结果说明
     * <p>
     * Table:     T_RIFI_EVALUATE
     * Column:    ASSESS_NAME
     * Nullable:  true
     */
    @Excel(name = "评测结果说明")
    @ApiModelProperty("评测结果说明")
    @Column(name = "ASSESS_NAME")
    private String assessName;

    /**
     * 分值
     * <p>
     * Table:     T_RIFI_EVALUATE
     * Column:    ASSESS_VALUE
     * Nullable:  true
     */
    @ApiModelProperty("分值")
    @Column(name = "ASSESS_VALUE")
    private BigDecimal assessValue;

    /**
     * 排序
     * <p>
     * Table:     T_RIFI_EVALUATE
     * Column:    ROW_ORDER
     * Nullable:  true
     */
    @ApiModelProperty("排序")
    @Column(name = "ROW_ORDER")
//    private String rowOrder;
    private  Integer rowOrder;
    /**
     * 重点风险ID
     * <p>
     * Table:     T_RIFI_EVALUATE
     * Column:    IMPORT_ID
     * Nullable:  true
     */
    @ApiModelProperty("重点风险ID")
    @Column(name = "IMPORT_ID")
    private String importId;
    /**
     * 风险结题ID
     * <p>
     * Table:     T_RIFI_EVALUATE
     * Column:    FINISH_ID
     * Nullable:  true
     */
    @ApiModelProperty("风险结题ID")
    @Column(name = "FINISH_ID")
    private String finishId;
    /**
     * 风险结题ID
     * <p>
     * Table:     T_RIFI_EVALUATE
     * Column:    EVALUATE_NO
     * Nullable:  true
     */
    @ApiModelProperty("管理目标排序字段")
    @Column(name = "EVALUATE_NO")
    private String evaluateNo;

}